{include file='pub/base' /}
		 {present name="info.id"}
			<form action="{:url('edit')}" method="post" name="form" id="form">
			<input type="hidden" name="id" value="{$info.id}">
		{else /}
			<form action="{:url('add')}" method="post" name="form" id="form">
		{/present}
			<table class="table table-border table-bordered table-hover table-bg">

				<tr class="text-c">
					<td colspan="4">{$tpltitle}菜单(节点)</td>
				</tr>
				<tr class="tr rt">
					<td width="100">上级菜单：</td>
					<td colspan="3" class="lt">
						<select name="pid"  class="select">
							{$select_categorys|raw}
						</select>
					</td>
				</tr>
				<tr class="tr rt">
					<td width="100">菜单名称：</td>
					<td colspan="3" class="lt">
						<input type="text" name="title" id="title" class='input-text' value="{$info.title ?? ''}">
					</td>
				</tr>
				<tr class="tr rt">
					<td >菜单类型：</td>
					<td colspan="3" class="lt">
						<select name="display"  class="select">
							<option value="1"  >主菜单</option>
							<option value="2"  >子菜单</option>
							<option value="0"  >不显示</option>
						</select>
					</td>
				</tr>
				<tr class="tr rt">
					<td width="100">节点类型：</td>
					<td colspan="3" class="lt">
						<select name="level"  class="select">
							<option value="2"  >模块</option>
							<option value="3"  >方法</option>
							<option value="0"  >非节点</option>
						</select>
					</td>
				</tr>
				<tr class="tr rt">
					<td width="100">节点名称：</td>
					<td colspan="3" class="lt">
						<input type="text" name="name" class="input-text" value="{$info.name ?? ''}">
					</td>
				</tr>
				<tr class="tr rt">
					<td >链接参数：</td>
					<td colspan="3" class="lt">
						<input type="text" name="data" class="input-text" value="{$info.data ?? ''}">
					</td>
				</tr>
				<tr class="tr rt">
					<td >节点状态：</td>
					<td colspan="3" class="lt">
						<input type="radio" class="radio" value="1" name="status"  >
							启用
							<input type="radio" class="radio" value="0" name="status"  >
							关闭
					</td>
				</tr>
				<tr class="tr rt">
					<td >备注说明：</td>
					<td colspan="3" class="lt">
						<input type="text" name="remark" id="remark" class="input-text" value="{$info.remark ?? ''}">
					</td>
				</tr>
	<tr class="text-c">
		<td colspan="4">
			{present name="info.id"}
				<input  class='btn btn-primary radius' type="submit" name="dosubmit" value="修 改" >
				{else /}
				<input  class='btn btn-primary radius' type="submit" name="dosubmit" value="添 加">{/present}
			&nbsp;
			<input  class='btn btn-primary radius' type="button" onclick="layer_close()" value="关 闭" ></td>
	</tr>
</table>
</form>
</body>
</html>
<script>
$(function () {
        $("[name='status'][value='{$info.status ?? '1'}']").attr("checked",true);
		$("[name='display']").find("[value='{$info.display ?? '0'}']").attr("selected",true);
		$("[name='level']").find("[value='{$info.level ?? '0'}']").attr("selected",true);
        $("#form").Validform({
            tiptype:2,
            ajaxPost:true,
            showAllError:true,
            callback:function(ret){
                ajax_progress(ret);
            }
        });
    })
</script>